package com.junqson.je.user.repo;

import com.junqson.je.user.model.UserConcernModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Descriptions
 * @Company
 * @Author Junqson
 * @Date 2020/2/3 17:28
 * @Version 1.0
 */
@Repository
public interface UserConcernRepo extends JpaRepository<UserConcernModel, Integer> {

    List<UserConcernModel> findByUserId(Integer userId);

    List<UserConcernModel> findByConcernUserId(Integer concernUserId);

    UserConcernModel findByUserIdAndConcernUserId(Integer userId, Integer concernUserId);

}

